package IO;

import java.io.*;

public class BufferedReader1 {
    public static void main(String[] args) throws IOException {
        try (Reader re = new FileReader("day10-file_io/src/IO/File3.txt");
             Reader re2=new BufferedReader(re);) {
            char[]src=new char[1024];
            int len;
            while((len=re.read(src))!=-1){
                System.out.println(new String(src,0,len));
            }
        }catch (Exception e) {
            e.printStackTrace();
        }
    }
}
